/* header file for i2c communication */

#ifndef I2C_H
#define I2C_H

#define I2C_START 0x08
#define I2C_REPSTART 0x10
#define I2C_MT_SLA_ACK 0x18
#define I2C_MT_DATA_ACK 0x28

unsigned char I2C_write(unsigned char i2c_address,unsigned int i2c_memaddr,unsigned i2c_data);
void I2C_setbitrate(unsigned int bitrate);
unsigned char I2C_read(unsigned char i2c_address,unsigned int i2c_memaddr);

#endif
